/*
 * Copyright (c) 2017 - 2019, AEye, Inc.
 * All rights reserved.
 */

#ifndef AEYE_SDK_UTILS_HPP
#define AEYE_SDK_UTILS_HPP

#include <string>

// AEYE_LIT => appropriate string literal type
#ifdef _MSC_VER
#define AEYE_LIT(x) L##x
#define CHAR_TYPE wchar_t
#else
#define AEYE_LIT(x) x
#define CHAR_TYPE char
#endif

namespace aeye {

std::string trim(const std::string &instr, const std::string &patt);

void set_thread_name(const CHAR_TYPE *name);

} // end namespace aeye

#undef CHAR_TYPE // avoid leaking macros into global scope in headers

#endif

